#
#  Copyright (c) 2019 Amazon.com, Inc. or its affiliates.  All rights
#  reserved.
#
#  This software is licensed under the terms of the GNU General Public
#  License version 2, as published by the Free Software Foundation, and
#  may be copied, distributed, and modified under those terms.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#

ifdef SEPARATE_BUILD
CONFIG_AMAZON_SDIO:=m

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif

obj-$(CONFIG_AMAZON_SDIO) := amazon-sdio.o

amazon-sdio-y := \
    amazon_net.o \
    mt7682_sdio.o \
    loop.o
